﻿package {
	
	import flash.display.*;
	import flash.events.*;
	
	import lt.uza.utils.*;
	
	public class Titan_Icon extends MovieClip {
		
	private var global:Global = Global.getInstance();
		public var ID:int;
		
		public var r:uint;
		public var g:uint;
		public var B:uint;
		
		public var lockx: Boolean;
		public var locky: Boolean;
		
		var placeholder: Shape= new Shape();
	
		public function Titan_Icon():void{
			Update_Color();
			addChild(placeholder);
			lockx=locky=false;
		}
		
		public function Update_Color():void{
			placeholder.graphics.clear();
			placeholder.graphics.beginFill(r<<16 | g<<8 | B);
			placeholder.graphics.drawRect(-10, -10, 20,20);
		}
	
	}
}